package action.point;

import java.util.Iterator;
import java.util.List;

import service.PointService;
import util.Utilities;
import vo.PointVO;

public class PointAllSelectAction {
	private PointService service;
	private List list;
	
	public void setPointService(PointService service) {
		this.service = service;
	}
	public List getList() {
		return list;
	}
	public void setList(List list) {
		this.list = list;
	}
	
	public String execute() {
		try {
			list = service.selectAllPoint();
			Iterator itr = list.iterator();
			while (itr.hasNext()) {
				PointVO pvo = (PointVO)itr.next();
				pvo.setShowPointdt(Utilities.getDateTime(pvo.getPointdt()));
			}
			
		} catch(Exception e) {
			e.printStackTrace();
		}
				
		return "success";
	}
}
